Skip to main content

long

Type

keyword

Summary

Specifies a format for the date, time, files, and folders functions, the convert command, and the name, ID, and owner properties.

Syntax

long

Description

Use the long keyword to obtain a date, time, name, ID, or list of files or folders with the greatest amount of available detail.

In general, a long form is longer than either the short form or the abbreviated form.

When used with a files or folders function it has the same effect as using the term 'the detailed files' or 'the detailed folders'.

If the useSystemDate property is set to false, a long date looks like this: Thursday, June 22, 2000 If the useSystemDate is true, the long date is formatted according to the system settings.

If the useSystemDate property is set to false, a long time looks like this: 11:22:47 AM If the useSystemDate is true, the long time is formatted according to the system settings.

A long object name consists of the object type, followed by the name in quotes, for the object and its owner (and the owner of that object, and so on). For example, a long card name looks like this: card "My Card" of stack "/Drive/Folder/Stack.rev"

A long object ID looks like this: card "My Card" of stack "/Drive/Folder/Stack.rev"

note

The long keyword is implemented internally as a property and function, and appears in the propertyNames and the functionNames. However, it cannot be used as a property in an expression, nor with the set command.

Examples

put the long ID of this card
put the long date
put the long seconds
set the defaultFolder to "/"
put the detailed files
set the defaultFolder to "/"
put the long folders

command: set, libURLSetLogField, convert

control structure: function

function: functionNames, propertyNames, time, folders, files, dateFormat, date

glossary: keyword, property, command, object type, expression, object

keyword: card, short, abbreviated

property: ID, name, owner, useSystemDate

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?